/**
 * @(#)com.typrotech.cloudplatform.sys.domain.Demo
 *
 * Copyright (c) 2014-2018 上海纬视瑞科技有限公司
 *
 * DESC:
 *
 */
package com.basic.demo.domain;

import java.util.Date;

/**
 * @author fusf
 * @version 1.0  2017/3/8
 */

public class Demo implements Comparable {

    private Long id;
    private String name;
    private Integer age;
/*    private Date birthday;*/
    private String address;

    public Demo(){

    }
    public Demo(Long id,String name){
        this.id = id;
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

/*    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }*/

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public int compareTo(Object o) {
        Demo demo = (Demo)o;
        return name.compareTo(demo.getName());
    }
}
